package com.itheima.demo;

import java.util.Arrays;

public class ArraysDemo {

    public static void main(String[] args) {

        int[] arr = {12,34,32,56,23,11,99};

        String s = Arrays.toString(arr);
        System.out.println(s);

        System.out.println("-----------------------------------------------");

        Arrays.sort(arr);

        String s1 = Arrays.toString(arr);
        System.out.println(s1);

        System.out.println("-----------------------------------------------");

        int i = Arrays.binarySearch(arr, 56);
        System.out.println(i);

    }
}
